package com.example.demo11.domian;


import org.springframework.data.jpa.repository.JpaRepository;

//通过继承实现这个存储过程 -- 存储仓库
//泛型为dao entity and id type
public interface UserRepository extends JpaRepository<User2, Long> {
    //spring through this method ORM field and process
    User2 findByUserName(String userName);
    User2 findByUserNameOrEmail(String username, String email);
}
